package com.mineg.service.Impl;

import com.mineg.dao.UserRepository;
import com.mineg.pojo.User;
import com.mineg.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author MINEg
 * @date 2020/11/5 13:52
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserRepository userRepository;
    @Override
    public User checkUser(String username, String password) {
        User user=userRepository.findByUsernameAndPassword(username,password);
        return user;
    }
}
